package com.stick.result;

public enum ResultEnum {

    USERNAME_AND_PASSWORD_NOT_NULL_CODE("1","用户名或密码不能为空"),

    USERNAME_AND_PASSWORD_ERROR_CODE("2","用户名或密码错误"),

    LOGIN_SUCCESS_CODE("3","登录成功"),
    SUCCESS("4","操作成功"),
    TOKEN_FAIL("5","TOKEN无效"),
    FAIL("6","操作失败"),
    INVENTORY_REVIEW_FAILED("7","审核未通过"),

    IN_REVIEW("8","有商品正在审核中审核中"),
    SUCCESSFULLY_SENT("9","短信发送成功"),
    INVALID_VERIFICATION_CODE("10","验证码失效"),
    USERNAME_EXIST("11","用户名已存在"),
    INSERT_CART_SUCCESS("12","成功加入购物车"),
    MONEY_FAIL("13","退款失败"),
    NO_CONG_FU("14","不可以重复退款"),
    TUI_KUAN_SUCCESS("15","退款成功"),

    SECKILL_HOT("16","秒杀太火爆,请稍后重试"),

    SECKILL_TIME_END("17","时间已到,秒杀结束"),

    SECKILL_TIME_OUT("18","秒杀时间一过"),

    SECKILL_STOCKCOUNT_NOT("19","库存不足"),

    SECKILL_SUBMIT_SUCCESS("20","秒杀订单提交成功"),
    EMAIL_SUCCESS("21","验证成功"),
    EMAIL_ERROR("22","验证失败,邮箱不存在");
    private String code;
    private String msg;

    ResultEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
